package com.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: my
 * @BelongsPackage: com.cloud.controller
 * @Author: ji ge
 * @CreateTime: 2024-02-02  19:09
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
 public class PaymentController {

    @Value("@{server.port}")
    private String serverPort;

    @GetMapping("/paymentNacos/{id}")
    public String paymentNacos(@PathVariable("id") Integer id) {
        return "payment nacos port=  "+serverPort+"\t id="+id;
    }
}
